package g327app4springcloud

//import org.springframework.beans.factory.annotation.Autowired
//import org.springframework.cloud.client.discovery.DiscoveryClient

class CloudDiscoveryController {

//    @Autowired
//    private DiscoveryClient discoveryClient

    def discoveryClient

    def index(String applicationName) {
        render discoveryClient.getInstances(applicationName ?: "GRAILS-CLOUD-DEMO")
    }
}
